package com.xiyu.service.enums.plan;

import com.xiyu.service.enums.medicine.HealthMedicineTypeEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 护理计划项目执行方式
*/
@Getter
@AllArgsConstructor
public enum NursePlanExecTypeEnum implements IntArrayValuable {

    /**
    * 月
    */
    MOUTH(0, "月"),
    /**
    * 周
    */
    WEEK(1, "周"),
    /**
    * 天
    */
    DAY(2, "天"),
    /**
    * X天
    */
    XDAY(3, "X天");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(NursePlanExecTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(NursePlanExecTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
